package Kurs;

import java.util.Scanner;

public class Zadacha5 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		System.out.println("Add three numbers: ");
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		
		if (a>b && a>c){
				System.out.print(a + " ");	
			if (b<c){
				System.out.println(c + " " + b);}	
			else{
				System.out.println(b + " " + c);}
		}
		
		if (b>a && b>c){
				System.out.print(b + " ");	
			if (a<c){ 
		    	System.out.println(c + " " + a);}
			else{
				System.out.println(a + " " + c);}
		}
		
		if (c>a && c>b) {
			System.out.print(c +" ");
			if (a<b){
				System.out.println(b + " " + a);
			}
			else{
				System.out.println(a + " " + b);
			}
		}
		
		
	}}


